package cn.szsys.integration.helper.manager;

import cn.szsys.integration.dto.EconomicCapabilityDTO;
import cn.szsys.integration.dto.TwoElementsDTO;
import cn.szsys.integration.helper.BusinessBeanNameConstant;
import cn.szsys.integration.helper.business.AbstractEconomicCapabilityHandlerChain;
import cn.szsys.integration.helper.business.AbstractTwoElementsHandlerChain;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 经济能力
 * @author Ryan
 * @since 2025-05-09
 **/
@Component(BusinessBeanNameConstant.EconomicCapability.MANAGE_BEAN_NAME)
public class EconomicCapabilityForwardHandlerChainManager extends AbstractForwardHandlerChainManager<EconomicCapabilityDTO> {

    @PostConstruct
    public void init() {
        Map<String, AbstractEconomicCapabilityHandlerChain> beansOfType = applicationContext.getBeansOfType(AbstractEconomicCapabilityHandlerChain.class);
        this.handlerChainMap.putAll(beansOfType);
    }
}
